//引入封装的reuest请求
const {
  request
} = require("./request.js");
//基于业务封装的接口
module.exports = {
  // 获取openid
  get_openidApi(data) {
    return request({
      url: "/api/wechat_notice/get_openid",
      method: "GET",
      method: "POST",
      data,
    });
  },
  // 登录操作
  loginApi(data) {
    return request({
      url: "/api/index/login",
      method: "POST",
      data,
    });
  },
  // banner列表
  bannerList() {
    return request({
      url: "/index.php/api/banner/list",
      method: "POST",
    });
  },
  
  // 报名活动列表
 hdList(data) {
    return request({
      url: "/index.php/api/banner/hdlist",
      method: "POST",
	  data
    });
  },
  
  notice(data) {
     return request({
       url: "/index.php/api/news/notice",
       method: "POST",
  	  data
     });
   },
  
  // 报名活动列表
  hdbmAdd(data) {
     return request({
       url: "/index.php/api/banner/bmAdd",
       method: "POST",
  	  data
     });
   },
   
   // 查询报名人员
   baominginfo(data) {
      return request({
        url: "/index.php/api/banner/activityinfo",
        method: "POST",
   	  data
      });
    },
  
  // 报名活动详情
  hdDetails(id) {
     return request({
       url: "/index.php/api/banner/hdDetails?id="+id,
       method: "GET"
     });
   },
   
   // 商城列表
   shopList(data) {
      return request({
        url: "/index.php/api/banner/shoplist",
        method: "POST",
   	  data
      });
    },
	
	// 商品详情
	shopDetails(id) {
	   return request({
	     url: "/index.php/api/banner/shopDetails?id="+id,
	     method: "GET"
	   });
	 },
	
	// 登录保存
	loginSave(data) {
	   return request({
	     url: "/index.php/api/banner/loginSave",
	     method: "POST",
		  data
	   });
	 },
	 
	 // 查询用户信息
	 userInfo(phone) {
	    return request({
	      url: "/index.php/api/banner/userInfo?phone="+phone,
	      method: "GET"
	    });
	  },
	  
	  // 查询token信息
	  getToken(phone) {
	     return request({
	       url: "/index.php/api/banner/loginToken?phone="+phone,
	       method: "GET"
	     });
	   },
	  
	  // 支付
	  getCreate() {
	     return request({
	       url: "/index.php/api/pay/create",
	       method: "POST",
	     });
	   },
	   
	   // 报名人数列表
	   getNumList(hid) {
	      return request({
	        url: "/index.php/api/banner/bmNumber?hid="+hid,
	        method: "GET"
	      });
	    },
		
		// 修改用户信息
		xgUser(data) {
		   return request({
		     url: "/index.php/api/banner/updateUser",
		     method: "POST",
			  data
		   });
		 },
		 
		 // 添加
		 getSeachBm(data) {
		    return request({
		      url: "/index.php/api/banner/seachBm",
		      method: "POST",
			  data
		    });
		  },
		  
		  // 交易列表
		  getDealList(data) {
		     return request({
		       url: "/index.php/api/banner/dealList",
		       method: "POST",
		  	   data
		     });
		   },
		   
	// 游记列表
	getTravelsList() {
	   return request({
	     url: "/index.php/api/banner/travelsList",
	     method: "POST",
		   // data
	   });
	 },
	 
	 // 游记列表
	 getRelease(data) {
	    return request({
	      url: "/index.php/api/banner/release",
	      method: "POST",
	 	   data
	    });
	  },
	
	// 我的发布内容
	getReleaseing(data) {
	   return request({
	     url: "/index.php/api/banner/releaseing",
	     method: "POST",
		   data
	   });
	 },
	 
	 // 删除我发布的内容
	 getReleasedel(hid) {
	    return request({
	      url: "/index.php/api/banner/releasedel?hid="+hid,
	      method: "GET"
	    });
	  },
	  
	// 游记广场
	getYjSquare() {
	   return request({
	     url: "/index.php/api/banner/yjSquare",
	     method: "POST"
	   });
	 },
	 
	 // 优惠券
	 getPreferential(data) {
	    return request({
	      url: "/index.php/api/banner/preferential",
	      method: "POST",
	 	   data
	    });
	  },
	  
	  // 我要投诉
	  getComplaint(data) {
	     return request({
	       url: "/index.php/api/banner/complaint",
	       method: "POST",
	  	   data
	     });
	   },
	   
	   // 我要投放
	   getputIn(data) {
	      return request({
	        url: "/index.php/api/banner/putIn",
	        method: "POST",
	   	   data
	      });
	    },
		
		// 判断广告是否开启
		putInKq() {
		   return request({
		     url: "/index.php/api/banner/putInKq",
		     method: "POST",
		   });
		 },
		 
		 // 投放列表
		 getputInList(data) {
		    return request({
		      url: "/index.php/api/banner/putInList",
		      method: "POST",
			  data
		    });
		  },
		  
		  // 投放设置
		  getputInSz() {
		     return request({
		       url: "/index.php/api/banner/putInSz",
		       method: "POST",
		     });
		   },
		   
		   // 点赞
		   getDianzan(data) {
		      return request({
		        url: "/index.php/api/banner/dianzan",
		        method: "POST",
		   	   data
		      });
		    },
			
			// 广告说明
			getgg() {
			   return request({
			     url: "/index.php/api/banner/ggSm",
			     method: "POST",
			   });
			 },
			 
			 
			 // 支付说明
			 getzf() {
			    return request({
			      url: "/index.php/api/banner/zfSm",
			      method: "POST",
			    });
			  },
			  
			  // 会员信息
			  getHyInfo(data) {
			     return request({
			       url: "/index.php/api/banner/getHyInfo",
			       method: "POST",
			  	   data
			     });
			   },
			   
			   // 根据手机号查询会员信息
			   getPhoneHy(data) {
			      return request({
			        url: "/index.php/api/banner/getPhoneHy",
			        method: "POST",
			   	   data
			      });
			    },
			   
			   // 修改封面图
			   upImage(data) {
			      return request({
			        url: "/index.php/api/banner/CoverImage",
			        method: "POST",
			   	   data
			      });
			    },
				
				// 投放列表
				putInXg(data) {
				   return request({
				     url: "/index.php/api/banner/putInUpdate",
				     method: "POST",
					 data
				   });
				 },
				 
				 // 投放结束修改
				 putInJs(data) {
				    return request({
				      url: "/index.php/api/banner/putInJsUpdate",
				      method: "POST",
				 	 data
				    });
				  },
				// 会员列表
				gethdbgList(data) {
				   return request({
				     url: "/index.php/api/banner/putInListIndex",
				     method: "POST",
					 data
				   });
				 },
				 
				 // 广告详情
				 ggDetails(id) {
				    return request({
				      url: "/index.php/api/banner/ggInfo?id="+id,
				      method: "GET"
				    });
				  },
				  
				  // 查询报名
				  getbminfo(data) {
				     return request({
				       url: "/index.php/api/banner/bminfo",
				       method: "POST",
					   data
				     });
				   },
				   
				   // 查询支付号码下的报名人员
				  refundlist(data) {
				     return request({
				       url: "/index.php/api/banner/refundlist",
				       method: "POST",
					   data
				     });
				   },
				   
				   // 搭子数据列表
				   getdzlist(data) {
						 return request({
						   url: "/index.php/api/banner/dzlist",
						   method: "POST",
						   data
						 });
					   },

};


 